﻿using System;
using System.Collections.Generic;
using System.Text;
using OZDoo.Core.Caching;

namespace OZDoo.Components
{
    public abstract class Language : ILanguage
    {
        public string GetString(string name)
        {
            return GetString(name, false);
        }

        public abstract string GetString(string name, bool isdefault);

        public static Language Instance()
        {
            string cachename = "OZDoo.Components.Language";
            ICache cache = CacheManage.GetCache();
            Language lang = cache.Get(cachename) as Language;
            return lang;
        }

    }
}
